package org.eleorc.ai.matrics;

import org.apache.commons.math3.linear.ArrayRealVector;
import org.apache.commons.math3.linear.MatrixUtils;
import org.apache.commons.math3.linear.RealMatrix;

public class MatrixOperation {
    public static void main(String[] args) {
        RealMatrix matrixA = MatrixUtils.createRealMatrix(new double[][] {
                {1, 2},
                {3, 4}
        });
        RealMatrix matrixB = MatrixUtils.createRealMatrix(new double[][] {
                {5, 6},
                {7, 8}
        });

        RealMatrix sum = matrixA.add(matrixB);
        System.out.println("Sum of Matrix A and B:");
        System.out.println(sum);



    }
}
